package com.pignest.hotel.util;

import org.zkoss.zul.Listbox;
import org.zkoss.zul.Listitem;

public class UiUtil {

	 public  static void setListboxSelect(Listbox listbox,String compare){
		 int count = listbox.getItemCount();
			for(int i=0;i<count;i++){
				Listitem item=listbox.getItemAtIndex(i);
				if(item.getAttribute("value").equals(compare)){
					item.setSelected(true);
					return  ;
				}
			}
	 }
	
}
